package cn.asiainfo.apportion.po;

import java.util.ArrayList;
import java.util.List;

public class BuApportionOfferDetailExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public BuApportionOfferDetailExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andApportionSeqIdIsNull() {
            addCriterion("APPORTION_SEQ_ID is null");
            return (Criteria) this;
        }

        public Criteria andApportionSeqIdIsNotNull() {
            addCriterion("APPORTION_SEQ_ID is not null");
            return (Criteria) this;
        }

        public Criteria andApportionSeqIdEqualTo(Long value) {
            addCriterion("APPORTION_SEQ_ID =", value, "apportionSeqId");
            return (Criteria) this;
        }

        public Criteria andApportionSeqIdNotEqualTo(Long value) {
            addCriterion("APPORTION_SEQ_ID <>", value, "apportionSeqId");
            return (Criteria) this;
        }

        public Criteria andApportionSeqIdGreaterThan(Long value) {
            addCriterion("APPORTION_SEQ_ID >", value, "apportionSeqId");
            return (Criteria) this;
        }

        public Criteria andApportionSeqIdGreaterThanOrEqualTo(Long value) {
            addCriterion("APPORTION_SEQ_ID >=", value, "apportionSeqId");
            return (Criteria) this;
        }

        public Criteria andApportionSeqIdLessThan(Long value) {
            addCriterion("APPORTION_SEQ_ID <", value, "apportionSeqId");
            return (Criteria) this;
        }

        public Criteria andApportionSeqIdLessThanOrEqualTo(Long value) {
            addCriterion("APPORTION_SEQ_ID <=", value, "apportionSeqId");
            return (Criteria) this;
        }

        public Criteria andApportionSeqIdIn(List<Long> values) {
            addCriterion("APPORTION_SEQ_ID in", values, "apportionSeqId");
            return (Criteria) this;
        }

        public Criteria andApportionSeqIdNotIn(List<Long> values) {
            addCriterion("APPORTION_SEQ_ID not in", values, "apportionSeqId");
            return (Criteria) this;
        }

        public Criteria andApportionSeqIdBetween(Long value1, Long value2) {
            addCriterion("APPORTION_SEQ_ID between", value1, value2, "apportionSeqId");
            return (Criteria) this;
        }

        public Criteria andApportionSeqIdNotBetween(Long value1, Long value2) {
            addCriterion("APPORTION_SEQ_ID not between", value1, value2, "apportionSeqId");
            return (Criteria) this;
        }

        public Criteria andParentOfferIdIsNull() {
            addCriterion("PARENT_OFFER_ID is null");
            return (Criteria) this;
        }

        public Criteria andParentOfferIdIsNotNull() {
            addCriterion("PARENT_OFFER_ID is not null");
            return (Criteria) this;
        }

        public Criteria andParentOfferIdEqualTo(Long value) {
            addCriterion("PARENT_OFFER_ID =", value, "parentOfferId");
            return (Criteria) this;
        }

        public Criteria andParentOfferIdNotEqualTo(Long value) {
            addCriterion("PARENT_OFFER_ID <>", value, "parentOfferId");
            return (Criteria) this;
        }

        public Criteria andParentOfferIdGreaterThan(Long value) {
            addCriterion("PARENT_OFFER_ID >", value, "parentOfferId");
            return (Criteria) this;
        }

        public Criteria andParentOfferIdGreaterThanOrEqualTo(Long value) {
            addCriterion("PARENT_OFFER_ID >=", value, "parentOfferId");
            return (Criteria) this;
        }

        public Criteria andParentOfferIdLessThan(Long value) {
            addCriterion("PARENT_OFFER_ID <", value, "parentOfferId");
            return (Criteria) this;
        }

        public Criteria andParentOfferIdLessThanOrEqualTo(Long value) {
            addCriterion("PARENT_OFFER_ID <=", value, "parentOfferId");
            return (Criteria) this;
        }

        public Criteria andParentOfferIdIn(List<Long> values) {
            addCriterion("PARENT_OFFER_ID in", values, "parentOfferId");
            return (Criteria) this;
        }

        public Criteria andParentOfferIdNotIn(List<Long> values) {
            addCriterion("PARENT_OFFER_ID not in", values, "parentOfferId");
            return (Criteria) this;
        }

        public Criteria andParentOfferIdBetween(Long value1, Long value2) {
            addCriterion("PARENT_OFFER_ID between", value1, value2, "parentOfferId");
            return (Criteria) this;
        }

        public Criteria andParentOfferIdNotBetween(Long value1, Long value2) {
            addCriterion("PARENT_OFFER_ID not between", value1, value2, "parentOfferId");
            return (Criteria) this;
        }

        public Criteria andSunOfferIdIsNull() {
            addCriterion("SUN_OFFER_ID is null");
            return (Criteria) this;
        }

        public Criteria andSunOfferIdIsNotNull() {
            addCriterion("SUN_OFFER_ID is not null");
            return (Criteria) this;
        }

        public Criteria andSunOfferIdEqualTo(Long value) {
            addCriterion("SUN_OFFER_ID =", value, "sunOfferId");
            return (Criteria) this;
        }

        public Criteria andSunOfferIdNotEqualTo(Long value) {
            addCriterion("SUN_OFFER_ID <>", value, "sunOfferId");
            return (Criteria) this;
        }

        public Criteria andSunOfferIdGreaterThan(Long value) {
            addCriterion("SUN_OFFER_ID >", value, "sunOfferId");
            return (Criteria) this;
        }

        public Criteria andSunOfferIdGreaterThanOrEqualTo(Long value) {
            addCriterion("SUN_OFFER_ID >=", value, "sunOfferId");
            return (Criteria) this;
        }

        public Criteria andSunOfferIdLessThan(Long value) {
            addCriterion("SUN_OFFER_ID <", value, "sunOfferId");
            return (Criteria) this;
        }

        public Criteria andSunOfferIdLessThanOrEqualTo(Long value) {
            addCriterion("SUN_OFFER_ID <=", value, "sunOfferId");
            return (Criteria) this;
        }

        public Criteria andSunOfferIdIn(List<Long> values) {
            addCriterion("SUN_OFFER_ID in", values, "sunOfferId");
            return (Criteria) this;
        }

        public Criteria andSunOfferIdNotIn(List<Long> values) {
            addCriterion("SUN_OFFER_ID not in", values, "sunOfferId");
            return (Criteria) this;
        }

        public Criteria andSunOfferIdBetween(Long value1, Long value2) {
            addCriterion("SUN_OFFER_ID between", value1, value2, "sunOfferId");
            return (Criteria) this;
        }

        public Criteria andSunOfferIdNotBetween(Long value1, Long value2) {
            addCriterion("SUN_OFFER_ID not between", value1, value2, "sunOfferId");
            return (Criteria) this;
        }

        public Criteria andMainPhoneIsNull() {
            addCriterion("MAIN_PHONE is null");
            return (Criteria) this;
        }

        public Criteria andMainPhoneIsNotNull() {
            addCriterion("MAIN_PHONE is not null");
            return (Criteria) this;
        }

        public Criteria andMainPhoneEqualTo(Long value) {
            addCriterion("MAIN_PHONE =", value, "mainPhone");
            return (Criteria) this;
        }

        public Criteria andMainPhoneNotEqualTo(Long value) {
            addCriterion("MAIN_PHONE <>", value, "mainPhone");
            return (Criteria) this;
        }

        public Criteria andMainPhoneGreaterThan(Long value) {
            addCriterion("MAIN_PHONE >", value, "mainPhone");
            return (Criteria) this;
        }

        public Criteria andMainPhoneGreaterThanOrEqualTo(Long value) {
            addCriterion("MAIN_PHONE >=", value, "mainPhone");
            return (Criteria) this;
        }

        public Criteria andMainPhoneLessThan(Long value) {
            addCriterion("MAIN_PHONE <", value, "mainPhone");
            return (Criteria) this;
        }

        public Criteria andMainPhoneLessThanOrEqualTo(Long value) {
            addCriterion("MAIN_PHONE <=", value, "mainPhone");
            return (Criteria) this;
        }

        public Criteria andMainPhoneIn(List<Long> values) {
            addCriterion("MAIN_PHONE in", values, "mainPhone");
            return (Criteria) this;
        }

        public Criteria andMainPhoneNotIn(List<Long> values) {
            addCriterion("MAIN_PHONE not in", values, "mainPhone");
            return (Criteria) this;
        }

        public Criteria andMainPhoneBetween(Long value1, Long value2) {
            addCriterion("MAIN_PHONE between", value1, value2, "mainPhone");
            return (Criteria) this;
        }

        public Criteria andMainPhoneNotBetween(Long value1, Long value2) {
            addCriterion("MAIN_PHONE not between", value1, value2, "mainPhone");
            return (Criteria) this;
        }

        public Criteria andShanghuaIsNull() {
            addCriterion("SHANGHUA is null");
            return (Criteria) this;
        }

        public Criteria andShanghuaIsNotNull() {
            addCriterion("SHANGHUA is not null");
            return (Criteria) this;
        }

        public Criteria andShanghuaEqualTo(Long value) {
            addCriterion("SHANGHUA =", value, "shanghua");
            return (Criteria) this;
        }

        public Criteria andShanghuaNotEqualTo(Long value) {
            addCriterion("SHANGHUA <>", value, "shanghua");
            return (Criteria) this;
        }

        public Criteria andShanghuaGreaterThan(Long value) {
            addCriterion("SHANGHUA >", value, "shanghua");
            return (Criteria) this;
        }

        public Criteria andShanghuaGreaterThanOrEqualTo(Long value) {
            addCriterion("SHANGHUA >=", value, "shanghua");
            return (Criteria) this;
        }

        public Criteria andShanghuaLessThan(Long value) {
            addCriterion("SHANGHUA <", value, "shanghua");
            return (Criteria) this;
        }

        public Criteria andShanghuaLessThanOrEqualTo(Long value) {
            addCriterion("SHANGHUA <=", value, "shanghua");
            return (Criteria) this;
        }

        public Criteria andShanghuaIn(List<Long> values) {
            addCriterion("SHANGHUA in", values, "shanghua");
            return (Criteria) this;
        }

        public Criteria andShanghuaNotIn(List<Long> values) {
            addCriterion("SHANGHUA not in", values, "shanghua");
            return (Criteria) this;
        }

        public Criteria andShanghuaBetween(Long value1, Long value2) {
            addCriterion("SHANGHUA between", value1, value2, "shanghua");
            return (Criteria) this;
        }

        public Criteria andShanghuaNotBetween(Long value1, Long value2) {
            addCriterion("SHANGHUA not between", value1, value2, "shanghua");
            return (Criteria) this;
        }

        public Criteria andLanIsNull() {
            addCriterion("LAN is null");
            return (Criteria) this;
        }

        public Criteria andLanIsNotNull() {
            addCriterion("LAN is not null");
            return (Criteria) this;
        }

        public Criteria andLanEqualTo(Long value) {
            addCriterion("LAN =", value, "lan");
            return (Criteria) this;
        }

        public Criteria andLanNotEqualTo(Long value) {
            addCriterion("LAN <>", value, "lan");
            return (Criteria) this;
        }

        public Criteria andLanGreaterThan(Long value) {
            addCriterion("LAN >", value, "lan");
            return (Criteria) this;
        }

        public Criteria andLanGreaterThanOrEqualTo(Long value) {
            addCriterion("LAN >=", value, "lan");
            return (Criteria) this;
        }

        public Criteria andLanLessThan(Long value) {
            addCriterion("LAN <", value, "lan");
            return (Criteria) this;
        }

        public Criteria andLanLessThanOrEqualTo(Long value) {
            addCriterion("LAN <=", value, "lan");
            return (Criteria) this;
        }

        public Criteria andLanIn(List<Long> values) {
            addCriterion("LAN in", values, "lan");
            return (Criteria) this;
        }

        public Criteria andLanNotIn(List<Long> values) {
            addCriterion("LAN not in", values, "lan");
            return (Criteria) this;
        }

        public Criteria andLanBetween(Long value1, Long value2) {
            addCriterion("LAN between", value1, value2, "lan");
            return (Criteria) this;
        }

        public Criteria andLanNotBetween(Long value1, Long value2) {
            addCriterion("LAN not between", value1, value2, "lan");
            return (Criteria) this;
        }

        public Criteria andOptionalLanIsNull() {
            addCriterion("OPTIONAL_LAN is null");
            return (Criteria) this;
        }

        public Criteria andOptionalLanIsNotNull() {
            addCriterion("OPTIONAL_LAN is not null");
            return (Criteria) this;
        }

        public Criteria andOptionalLanEqualTo(Long value) {
            addCriterion("OPTIONAL_LAN =", value, "optionalLan");
            return (Criteria) this;
        }

        public Criteria andOptionalLanNotEqualTo(Long value) {
            addCriterion("OPTIONAL_LAN <>", value, "optionalLan");
            return (Criteria) this;
        }

        public Criteria andOptionalLanGreaterThan(Long value) {
            addCriterion("OPTIONAL_LAN >", value, "optionalLan");
            return (Criteria) this;
        }

        public Criteria andOptionalLanGreaterThanOrEqualTo(Long value) {
            addCriterion("OPTIONAL_LAN >=", value, "optionalLan");
            return (Criteria) this;
        }

        public Criteria andOptionalLanLessThan(Long value) {
            addCriterion("OPTIONAL_LAN <", value, "optionalLan");
            return (Criteria) this;
        }

        public Criteria andOptionalLanLessThanOrEqualTo(Long value) {
            addCriterion("OPTIONAL_LAN <=", value, "optionalLan");
            return (Criteria) this;
        }

        public Criteria andOptionalLanIn(List<Long> values) {
            addCriterion("OPTIONAL_LAN in", values, "optionalLan");
            return (Criteria) this;
        }

        public Criteria andOptionalLanNotIn(List<Long> values) {
            addCriterion("OPTIONAL_LAN not in", values, "optionalLan");
            return (Criteria) this;
        }

        public Criteria andOptionalLanBetween(Long value1, Long value2) {
            addCriterion("OPTIONAL_LAN between", value1, value2, "optionalLan");
            return (Criteria) this;
        }

        public Criteria andOptionalLanNotBetween(Long value1, Long value2) {
            addCriterion("OPTIONAL_LAN not between", value1, value2, "optionalLan");
            return (Criteria) this;
        }

        public Criteria andFixedLineIsNull() {
            addCriterion("FIXED_LINE is null");
            return (Criteria) this;
        }

        public Criteria andFixedLineIsNotNull() {
            addCriterion("FIXED_LINE is not null");
            return (Criteria) this;
        }

        public Criteria andFixedLineEqualTo(Long value) {
            addCriterion("FIXED_LINE =", value, "fixedLine");
            return (Criteria) this;
        }

        public Criteria andFixedLineNotEqualTo(Long value) {
            addCriterion("FIXED_LINE <>", value, "fixedLine");
            return (Criteria) this;
        }

        public Criteria andFixedLineGreaterThan(Long value) {
            addCriterion("FIXED_LINE >", value, "fixedLine");
            return (Criteria) this;
        }

        public Criteria andFixedLineGreaterThanOrEqualTo(Long value) {
            addCriterion("FIXED_LINE >=", value, "fixedLine");
            return (Criteria) this;
        }

        public Criteria andFixedLineLessThan(Long value) {
            addCriterion("FIXED_LINE <", value, "fixedLine");
            return (Criteria) this;
        }

        public Criteria andFixedLineLessThanOrEqualTo(Long value) {
            addCriterion("FIXED_LINE <=", value, "fixedLine");
            return (Criteria) this;
        }

        public Criteria andFixedLineIn(List<Long> values) {
            addCriterion("FIXED_LINE in", values, "fixedLine");
            return (Criteria) this;
        }

        public Criteria andFixedLineNotIn(List<Long> values) {
            addCriterion("FIXED_LINE not in", values, "fixedLine");
            return (Criteria) this;
        }

        public Criteria andFixedLineBetween(Long value1, Long value2) {
            addCriterion("FIXED_LINE between", value1, value2, "fixedLine");
            return (Criteria) this;
        }

        public Criteria andFixedLineNotBetween(Long value1, Long value2) {
            addCriterion("FIXED_LINE not between", value1, value2, "fixedLine");
            return (Criteria) this;
        }

        public Criteria andOptionalFixedLineIsNull() {
            addCriterion("OPTIONAL_FIXED_LINE is null");
            return (Criteria) this;
        }

        public Criteria andOptionalFixedLineIsNotNull() {
            addCriterion("OPTIONAL_FIXED_LINE is not null");
            return (Criteria) this;
        }

        public Criteria andOptionalFixedLineEqualTo(Long value) {
            addCriterion("OPTIONAL_FIXED_LINE =", value, "optionalFixedLine");
            return (Criteria) this;
        }

        public Criteria andOptionalFixedLineNotEqualTo(Long value) {
            addCriterion("OPTIONAL_FIXED_LINE <>", value, "optionalFixedLine");
            return (Criteria) this;
        }

        public Criteria andOptionalFixedLineGreaterThan(Long value) {
            addCriterion("OPTIONAL_FIXED_LINE >", value, "optionalFixedLine");
            return (Criteria) this;
        }

        public Criteria andOptionalFixedLineGreaterThanOrEqualTo(Long value) {
            addCriterion("OPTIONAL_FIXED_LINE >=", value, "optionalFixedLine");
            return (Criteria) this;
        }

        public Criteria andOptionalFixedLineLessThan(Long value) {
            addCriterion("OPTIONAL_FIXED_LINE <", value, "optionalFixedLine");
            return (Criteria) this;
        }

        public Criteria andOptionalFixedLineLessThanOrEqualTo(Long value) {
            addCriterion("OPTIONAL_FIXED_LINE <=", value, "optionalFixedLine");
            return (Criteria) this;
        }

        public Criteria andOptionalFixedLineIn(List<Long> values) {
            addCriterion("OPTIONAL_FIXED_LINE in", values, "optionalFixedLine");
            return (Criteria) this;
        }

        public Criteria andOptionalFixedLineNotIn(List<Long> values) {
            addCriterion("OPTIONAL_FIXED_LINE not in", values, "optionalFixedLine");
            return (Criteria) this;
        }

        public Criteria andOptionalFixedLineBetween(Long value1, Long value2) {
            addCriterion("OPTIONAL_FIXED_LINE between", value1, value2, "optionalFixedLine");
            return (Criteria) this;
        }

        public Criteria andOptionalFixedLineNotBetween(Long value1, Long value2) {
            addCriterion("OPTIONAL_FIXED_LINE not between", value1, value2, "optionalFixedLine");
            return (Criteria) this;
        }

        public Criteria andItvFirstIsNull() {
            addCriterion("ITV_FIRST is null");
            return (Criteria) this;
        }

        public Criteria andItvFirstIsNotNull() {
            addCriterion("ITV_FIRST is not null");
            return (Criteria) this;
        }

        public Criteria andItvFirstEqualTo(Long value) {
            addCriterion("ITV_FIRST =", value, "itvFirst");
            return (Criteria) this;
        }

        public Criteria andItvFirstNotEqualTo(Long value) {
            addCriterion("ITV_FIRST <>", value, "itvFirst");
            return (Criteria) this;
        }

        public Criteria andItvFirstGreaterThan(Long value) {
            addCriterion("ITV_FIRST >", value, "itvFirst");
            return (Criteria) this;
        }

        public Criteria andItvFirstGreaterThanOrEqualTo(Long value) {
            addCriterion("ITV_FIRST >=", value, "itvFirst");
            return (Criteria) this;
        }

        public Criteria andItvFirstLessThan(Long value) {
            addCriterion("ITV_FIRST <", value, "itvFirst");
            return (Criteria) this;
        }

        public Criteria andItvFirstLessThanOrEqualTo(Long value) {
            addCriterion("ITV_FIRST <=", value, "itvFirst");
            return (Criteria) this;
        }

        public Criteria andItvFirstIn(List<Long> values) {
            addCriterion("ITV_FIRST in", values, "itvFirst");
            return (Criteria) this;
        }

        public Criteria andItvFirstNotIn(List<Long> values) {
            addCriterion("ITV_FIRST not in", values, "itvFirst");
            return (Criteria) this;
        }

        public Criteria andItvFirstBetween(Long value1, Long value2) {
            addCriterion("ITV_FIRST between", value1, value2, "itvFirst");
            return (Criteria) this;
        }

        public Criteria andItvFirstNotBetween(Long value1, Long value2) {
            addCriterion("ITV_FIRST not between", value1, value2, "itvFirst");
            return (Criteria) this;
        }

        public Criteria andItvSecondIsNull() {
            addCriterion("ITV_SECOND is null");
            return (Criteria) this;
        }

        public Criteria andItvSecondIsNotNull() {
            addCriterion("ITV_SECOND is not null");
            return (Criteria) this;
        }

        public Criteria andItvSecondEqualTo(Long value) {
            addCriterion("ITV_SECOND =", value, "itvSecond");
            return (Criteria) this;
        }

        public Criteria andItvSecondNotEqualTo(Long value) {
            addCriterion("ITV_SECOND <>", value, "itvSecond");
            return (Criteria) this;
        }

        public Criteria andItvSecondGreaterThan(Long value) {
            addCriterion("ITV_SECOND >", value, "itvSecond");
            return (Criteria) this;
        }

        public Criteria andItvSecondGreaterThanOrEqualTo(Long value) {
            addCriterion("ITV_SECOND >=", value, "itvSecond");
            return (Criteria) this;
        }

        public Criteria andItvSecondLessThan(Long value) {
            addCriterion("ITV_SECOND <", value, "itvSecond");
            return (Criteria) this;
        }

        public Criteria andItvSecondLessThanOrEqualTo(Long value) {
            addCriterion("ITV_SECOND <=", value, "itvSecond");
            return (Criteria) this;
        }

        public Criteria andItvSecondIn(List<Long> values) {
            addCriterion("ITV_SECOND in", values, "itvSecond");
            return (Criteria) this;
        }

        public Criteria andItvSecondNotIn(List<Long> values) {
            addCriterion("ITV_SECOND not in", values, "itvSecond");
            return (Criteria) this;
        }

        public Criteria andItvSecondBetween(Long value1, Long value2) {
            addCriterion("ITV_SECOND between", value1, value2, "itvSecond");
            return (Criteria) this;
        }

        public Criteria andItvSecondNotBetween(Long value1, Long value2) {
            addCriterion("ITV_SECOND not between", value1, value2, "itvSecond");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}